﻿@model Newtouch.HIS.Web.Core.Models.BottomButtonViewModel
@{
    Array.Sort(Model.ShowKeyList);

    var wappStyle = "text-align:right;padding-right:30px;margin:5px 0;";
    if (!string.IsNullOrWhiteSpace(Model.WapperInlineStyle))
    {
        wappStyle = Model.WapperInlineStyle;
    }
}
<div style="@(wappStyle)">
    @{
        foreach (var i in Model.ShowKeyList)
        {
            @Html.Raw(string.Format("<a class=\"btn btn-default btn-md\" style=\"margin-left:4px;{1}{2}\" id=\"btn_bottombutton_f{0}\" onclick=\"newtouch_globalevent_f{0}()\">", i
                , (Model.GetIndexHidden(i) ? "display:none;" : "")
                , Model.GetIndexExtInlineStyle(i) ?? ""
                ))
            @Html.Raw(string.Format("F{0}：{1}", i, Model.GetIndexText(i)))
            @Html.Raw("</a>")
        }
    }
</div>